feat!: remove OpenAI Moderation API Example#1655
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Removes the OpenAI Moderation API example from the AI section of the app, including its UI entrypoint, routes/controllers, documentation, and associated E2E/fixture coverage (per issue #1597).
Changes:
- Removed
/ai/openai-moderationUI page and its card from the/aiindex. - Removed Express routes and controller handlers for the OpenAI moderation example.
- Removed the Playwright E2E test and recorded fixtures, and updated testing/docs references accordingly.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| views/ai/openai-moderation.pug | Removes the OpenAI Moderation example page template. |
| views/ai/index.pug | Removes the OpenAI Moderation card/link from the AI examples index. |
| controllers/ai.js | Removes the GET/POST controller actions for the moderation example. |
| app.js | Removes the /ai/openai-moderation routes. |
| README.md | Removes OpenAI Moderation mentions and setup instructions. |
| test/e2e/openai-moderation.e2e.test.js | Removes the Playwright E2E test for the moderation example. |
| test/TESTING.md | Removes the moderation E2E test from the documented test tree. |
| test/fixtures/POST_https%3A%2F%2Fapi.openai.com%2Fv1%2Fmoderations_c6b4d54f3bd4.json | Removes recorded OpenAI moderation fixture (flagged case). |
| test/fixtures/POST_https%3A%2F%2Fapi.openai.com%2Fv1%2Fmoderations_624f7df3dc5f.json | Removes recorded OpenAI moderation fixture (non-flagged case). |
| test/fixtures/fixture_manifest.json | Removes the moderation test from the fixture manifest (plus a minor formatting-only reflow; see comment). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
--no-verifywas not used for the commit(s)npm run lintpassed locally without any errorsnpm testpassed locally without any errorsnpm run test:e2e:replaypassed locally without any errorsnpm run test:e2e:custom -- --project=chromium-nokey-livepassed locally without any errorsDescription
Fixes: #1597
Screenshots of UI changes (browser) and logs/test results (console, terminal, shell, cmd)
/aiview after the removal.